package com.sdjzu.wanfuying.androiddesign;

import android.os.Bundle;
import android.widget.TextView;

import com.kelin.translucentbar.library.TranslucentBarManager;
import com.sdjzu.wanfuying.androiddesign.base.BaseActivity;

import java.nio.charset.Charset;

import butterknife.BindView;
import cn.hutool.core.io.IoUtil;
import ru.noties.markwon.Markwon;

public class MarkDownActivity extends BaseActivity {
    @BindView(R.id.activity_markdown_txt_markdown)
    TextView mTextMarkDown;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mark_down);

        TranslucentBarManager translucentBarManager = new TranslucentBarManager(this);
        translucentBarManager.translucent(this);

        Markwon.setMarkdown(mTextMarkDown, IoUtil.read(getResources().openRawResource(R.raw.readme), Charset.forName("utf-8")));
    }
}
